package com.travel.config;

import com.travel.service.impl.CityInfoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * Author:Jasenon_ce
 * Date: 2025.05.29/下午5:02
 */
@Configuration
public class SupportCityFilterConfig {

    @Autowired
    private CityInfoServiceImpl cityInfoService;

    @Bean(name = "supportCityList")
    public List<String> supportCityList() {
        return cityInfoService.getAllSupportedCities();
    }

}
